package com.xdb.sqlparser.dialect.oracle.ast.statement;

import java.util.ArrayList;
import java.util.List;

import com.xdb.sqlparser.ast.SQLExpr;
import com.xdb.sqlparser.dialect.oracle.ast.OracleSQLObjectImpl;
import com.xdb.sqlparser.dialect.oracle.visitor.OracleASTVisitor;

public class OracleFileSpecification extends OracleSQLObjectImpl {

	private List<SQLExpr> fileNames = new ArrayList<SQLExpr>();

	private SQLExpr size;

	private boolean autoExtendOff = false;

	private SQLExpr autoExtendOn;

	@Override
	public void accept0(OracleASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, fileNames);
			acceptChild(visitor, size);
			acceptChild(visitor, autoExtendOn);
		}
		visitor.endVisit(this);
	}

	public SQLExpr getAutoExtendOn() {
		return autoExtendOn;
	}

	public void setAutoExtendOn(SQLExpr autoExtendOn) {
		this.autoExtendOn = autoExtendOn;
	}

	public SQLExpr getSize() {
		return size;
	}

	public void setSize(SQLExpr size) {
		this.size = size;
	}

	public boolean isAutoExtendOff() {
		return autoExtendOff;
	}

	public void setAutoExtendOff(boolean autoExtendOff) {
		this.autoExtendOff = autoExtendOff;
	}

	public List<SQLExpr> getFileNames() {
		return fileNames;
	}

	public void setFileNames(List<SQLExpr> fileNames) {
		this.fileNames = fileNames;
	}

}
